package com.dds.web.controller.app;

import java.util.List;

import com.dds.common.annotation.Log;
import com.dds.common.core.controller.BaseController;
import com.dds.common.core.domain.AjaxResult;
import com.dds.common.core.page.TableDataInfo;
import com.dds.common.enums.BusinessType;
import com.dds.common.utils.poi.ExcelUtil;
import com.dds.system.domain.sys.SysMqServiceRecord;
import com.dds.system.service.sys.ISysMqServiceRecordService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 队列任务处理日志Controller
 * 
 * @author gaolianjie
 * @date 2021-04-12
 */
@RestController
@RequestMapping("/app/record")
public class SysMqServiceRecordController extends BaseController
{
    @Autowired
    private ISysMqServiceRecordService sysMqServiceRecordService;

    /**
     * 查询队列任务处理日志列表
     */
    @PreAuthorize("@ss.hasPermi('system:record:list')")
    @GetMapping("/list")
    public TableDataInfo list(SysMqServiceRecord sysMqServiceRecord)
    {
        startPage();
        List<SysMqServiceRecord> list = sysMqServiceRecordService.selectSysMqServiceRecordList(sysMqServiceRecord);
        return getDataTable(list);
    }
}
